any(input("请输入用户名：") == 'Kate' and input("请输入密码：") == '666666' 
    for _ in range(3)) and print("登录成功！") or print("3次用户名或者密码有误！退出程序。")